import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/shop_goods_transfers',
    method: 'get',
    params: params
  })
}

export function put(params) {
  return request({
    url: `/shop_goods_transfers/confirm`,
    method: 'post',
    params
  })
}

export function edit(id) {
  return request({
    url: `/shop_goods_transfers/${id}/edit`,
    method: 'get'
  })
}

export function save(data) {
  return request({
    url: `/shop_goods_transfers`,
    method: 'post',
    data
  })
}

export function istop(data) {
  return request({
    url: `/shop_goods_transfers/is_top`,
    method: 'post',
    data
  })
}

export function deleted(id) {
  return request({
    url: `/shop_goods_transfers/${id}`,
    method: 'delete'
  })
}
